package com.work.mapper;

import com.work.bean.PersonBean;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface IPersonMapper {
    @Update("update t_person set p_tel = #{newTel} where pk_personId = #{id}")
    public void updateById(@Param("id") int id,@Param("newTel") String newTel);

    public List<PersonBean> findAll();
}
